/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 查询列表 /fiRebate/queryRebateDetail
export const getList = (params) => axios.get(`${SERVER.WHOLESALES}/rebateSubprojects/queryRebateSubprojects`, {
  params
})
// 资金类型 /tmFiAccountType/list
export const getFundsType = (params) => axios.post(`${SERVER.WHOLESALES}/tmFiAccountType/list`, params)
// 新增
export const addSave = (params) => axios.post(`${SERVER.WHOLESALES}/rebateSubprojects/addRebateSubprojects`, params)
// 編輯
export const editSave = (params) => axios.post(`${SERVER.WHOLESALES}/rebateSubprojects/editOneRebateSubprojects`, params)
// 保存排序
export const saveSort = (params) => axios.post(`${SERVER.WHOLESALES}/rebateSubprojects/editRebateSubprojects`, params)
